package com.itheima.tlias84.controller;


import com.itheima.tlias84.utils.ResultUtil;
import jakarta.servlet.http.HttpSession;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/session")
public class TestSessionController {
    public ResultUtil saveSession(HttpSession session){
        session.setAttribute("username","张三");
        session.setAttribute("password","123456");
        return ResultUtil.success();
    }
}
